/*
 * @Description: 兑换商品管理
 */
import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  daleteJson,
  download
} from '../utils/request';

// 获取列表
export function getExchangeList(data) {
  return post('/api/goods-service/v1/goods/queryTGoodsGoodsExchangeList', data);
}

// 获取兑换商品详情
export function getExchangeDetail(params) {
  return get('/api/goods-service/v1/goods/getGoodsExchange', params);
}

// 新增/编辑商品
export function updateExchange(data) {
  return post('/api/goods-service/v1/goods/addGoodsExchange', data);
}

// 修改兑换商品状态
export function updateExchangeStatus(params) {
  return get('/api/goods-service/v1/goods/upGoodsExchangeStatus', params);
}

// 删除兑换商品
export function deExchangeStatus(params) {
  return get('/api/goods-service/v1/goods/deGoodsExchangeStatus', params);
}

// 兑换商品导出
export function exportExchange(data) {
  return download('/api/goods-service/v1/goods/getGoodsExchangeExcel', data);
}

// 兑换商品分类列表
export function queryGoodsExchangeTypeList(data) {
  return post('/api/goods-service/v1/goodsExchange/queryGoodsExchangeTypeList', data);
}
// 新增商品分类
export function addGoodsExchangeType(data) {
  return post('/api/goods-service/v1/goodsExchange/addGoodsExchangeType', data);
}
// 编辑商品分类
export function editGoodsExchangeType(data) {
  return post('/api/goods-service/v1/goodsExchange/editGoodsExchangeType', data);
}
// 删除分类
export function deleteGoodsExchangeType(data) {
  return post('/api/goods-service/v1/goodsExchange/deleteGoodsExchangeType', data);
}

// 同步商家云币-补偿机制
export function refreshMerchantIntegral(params) {
  return get('/api/member-service/v1/memberBonuspoint/refreshMerchantIntegral', params);
}

// 导出
export function getStoreExcelBonusAddTemplate(data) {
  return download('/api/user-service/v1/review/getStoreExcelBonusAddTemplate', data)
}

// 批量酒币导入验证确认
export function bonusAddExcelImportSubmit(data) {
  return post('/api/member-service/v1/memberBonuspoint/bonusAddExcelImportSubmit', data)
}